module.exports = () => {
  return {
    plugins: [
      require('postcss-import')(),
      require('postcss-mixins')(),
      require('postcss-each')(),
      require('postcss-css-variables')({
        preserve: true,
      }),
      // require('postcss-cssnext')({
      //   features: { customProperties: false },
      //   warnForDuplicates: false,
      // }),
      require('postcss-reporter')({ clearMessages: true }),
      require('cssnano')({
        colormin: { legacy: true },
        core: false,
        zindex: false,
        reduceIdents: false,
        mergeIdents: false,
        discardUnused: { keyframes: false },
      }),
      require('postcss-preset-env')({
        stage: 2,
        autoprefixer: { grid: 'autoplace' },
        browsers: ['chrome 65', 'not IE 11'],
      }),
    ],
  };
};
